#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
double MAX(double root1, double root2)
{
	return root1 > root2 ? root1 : root2;
}
double MIN(double root1, double root2)
{
	return root1 < root2 ? root1 : root2;
}
int main()
{
	double a = 0;
	double b = 0;
	double c = 0;
	double derta = 0;
	double root1 = 0;
	double root2 = 0;
	double max = 0;
	double min = 0;

	scanf("%lf %lf %lf", &a, &b, &c);
	derta = pow(b, 2) - 4 * a * c;
	if (a == 0 && b == 0 && c != 0)
	{
		printf("Not An Equation");
	}
	else if (a == 0 && b == 0 && c == 0)
	{
		printf("Zero Equation");
	}
	else if (a == 0 && b != 0 && c != 0)
	{
		root1 = (-c) / b * 1.0;
		printf("%.2lf", root1);
	}
	else if (derta == 0 && a != 0)
	{
		root1 = (-b) / (2 * a) * 1.0;
		printf("%.2lf", root1);
	}
	else if (derta > 0 && a != 0)
	{
		root1 = (-b + sqrt(derta)) / (2 * a);
		root2 = (-b - sqrt(derta)) / (2 * a);
		max = MAX(root1, root2);
		min = MIN(root1, root2);
		printf("%.2lf\n%.2lf", max, min);
	}
	else if (derta < 0 && a != 0)
	{
		printf("%.2lf+%.2lfi\n", -b / ((2 * a) * 1.0), sqrt(-derta) / (2 * a));
		printf("%.2lf-%.2lfi", -b / ((2 * a) * 1.0), sqrt(-derta) / (2 * a));
	}

	return 0;
}